package com.qiaoba.module.system.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.qiaoba.common.database.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 字典数据
 *
 * @author ailanyin
 * @date 2023-09-09 17:26:13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_dict_data")
public class SysDictData extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId
    @Excel(name = "字典编码", width = 20)
    @Schema(description = "字典编码")
    private String dictCode;

    @Excel(name = "字典排序", width = 20)
    @Schema(description = "字典排序")
    private Integer dictSort;

    @Excel(name = "字典标签", width = 20)
    @Schema(description = "字典标签")
    private String dictLabel;

    @Excel(name = "字典键值", width = 20)
    @Schema(description = "字典键值")
    private String dictValue;

    @Excel(name = "字典类型", width = 20)
    @Schema(description = "字典类型")
    private String dictType;

    @Schema(description = "样式属性（其他样式扩展）")
    private String cssClass;

    @Schema(description = "表格回显样式")
    private String listClass;

    @Excel(name = "状态", width = 20, replace = {"正常_1", "停用_0"})
    @Schema(description = "状态 1正常0禁用")
    private String status;

}
